home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Mac⁄gnuucp 6.14 / source / sysdep.h < prev    next >
Encoding:
Text File  |  1993-09-06  |  3.4 KB  |  108 lines  |  [TEXT/R*ch]

  1. /*
  2.  * @(#)sysdep.h 1.4 87/09/23    Copyright 1987 Free Software Foundation, Inc.
  3.  *
  4.  * Copying and use of this program are controlled by the terms of the
  5.  * GNU Emacs General Public License.
  6.  *
  7.  * Declarations of gnuucp's system-dependent routines, which
  8.  * are in the file sysdep.c (a link to one of many system dependent
  9.  * implementations).
  10.  */
  11.  
  12. /*
  13.  * Returns a temp filename, in a static buffer, to use while
  14.  * receiving the file whose name is passed as argument.
  15.  */
  16. char *    temp_filename();
  17.  
  18. /*
  19.  * Returns a filename, in a static buffer, which should be used
  20.  * on the local system to access the file named in a uucp control
  21.  * file (the argument).  E.g. it might turn D.foobarX1234 into
  22.  * foobar\X1234.D on MSDOS, or to D./D.foobarX1234 on Unix.
  23.  */
  24. char *    munge_filename();
  25.  
  26. /* Should be related to MAX packet size we expect */
  27. #define SER_BUF_SIZE 4096
  28.  
  29. /*
  30.  * Basement level I/O routines
  31.  *
  32.  * xwrite() writes a character string to the serial port
  33.  * xgetc() returns a character from the serial port, or an EOF for timeout.
  34.  * sigint() restores the state of the serial port on exit.
  35.  * openline() opens a serial port for an incoming call, waiting for carrier.
  36.  * openout() opens a serial port for an outgoing call.
  37.  */
  38. int xwrite();        /* buffer, count */
  39. extern long xgetc_buf_pos;
  40. extern long xgetc_buf_count;
  41. extern unsigned char xgetc_buf[SER_BUF_SIZE];
  42.  
  43. int xgetc();        /* No arg */
  44. void sigint();        /* No arg */
  45.  
  46. extern int inRefNum;
  47. extern int outRefNum;
  48. int openline();        /* ttyname, baud */
  49. int openout();        /* ttyname, baud */
  50.  
  51. /*
  52.  * Uucp work queue scan.
  53.  *
  54.  * gotsome = work_scan(hostname, type);
  55.  *
  56.  * Hostname is a string, e.g. "hoptoad", or (char *)NULL for all hostnames.
  57.  * Type is a string, indicating the type of file:
  58.  *    "C"    control file, holding file transfer commands for host
  59.  *    "D"    data file, holding data to go to host
  60.  *    "X"    execute file, holding shell commands to execute here (host??)
  61.  *    "LCK"    lock files, holding execlusive access to dialers and systems
  62.  *    "STST"    system status files, holding status info about systems
  63.  * Result is 1 if there is work, 0 if none.  If result is 1, and work_scan
  64.  * is called a second time without an intervening work_done, it won't
  65.  * rescan the directory but simply returns a 1.
  66.  *
  67.  * workfile = work_next();
  68.  *
  69.  * Result is char * to static filename; or NULL if no more.
  70.  * We only read the directory once.  If callers want more to rescan it
  71.  * in case more work is here, they should call work_scan again.
  72.  *
  73.  * void work_done();
  74.  * Clean up a work scan.  No need to call this if work_next returned NULL;
  75.  * it has cleaned up.
  76.  */
  77. extern int work_scan();
  78. extern char *work_next();
  79. extern void work_done();
  80.  
  81. /*
  82.  * System-dependent default control file name.
  83.  */
  84. extern char sysdep_control[];
  85.  
  86. /*
  87.  * Routine to return a string that gives the current date and time, and
  88.  * identifies the current process, if on a multiprocess system.
  89.  */
  90. extern char *time_and_pid();
  91.  
  92. /******************************************************************************
  93.  OSChecks.h
  94.  
  95.         Declarations for Operating System Checks Module
  96.         
  97.         Copyright © 1989 Symantec Corporation. All rights reserved.
  98.         
  99.  ******************************************************************************/
  100.  
  101. #define _H_OSChecks
  102.  
  103.         /** Exported Functions **/
  104.  
  105.      Boolean        TrapAvailable(short trapNum, short tType);
  106.      Boolean        WNEIsImplemented(void);
  107.      Boolean        TempMemCallsAvailable(void);
  108.      Boolean        ColorQDIsPresent(void);